#include "stm32f10x.h"
#include "buzzer.h"
#include "L_sensor.h"
int ON=1,OFF=0;
int main(void)
	{
		uint8_t a=0,b=0;
		Buzzer_Init();
	    Lsensor_Init();
		while(1)
		{ 
			a=Lsensor_InputGet();
			if(a==1&&b==0)
				b=1;
			else if(a==1&&b==1)
				b=0;
			Buzzer_Set(b);
		}
		
		
		
	}
	